﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin.master" AutoEventWireup="true" CodeFile="Statistics.aspx.cs" Inherits="Statistics" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Css/updateTypeCard.css" rel="stylesheet" />
    <link href="Css/Statistics.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content_title">Statistics</div>
    <div id="content_detail">
        <div class="Statistics_count">
            <div class="Statistics_count_title">Statistics send card number</div>
            <div class="Statistics_count_content">

                <asp:GridView ID="grvCount" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnPageIndexChanging="grvCount_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="typeCardName" HeaderText="Name Type Ecard" />
                        <asp:BoundField DataField="sent" HeaderText="Sent" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>

            </div>
            <div class="total">Total :
                <asp:Label ID="lblTotalCount" runat="server" Text="..."></asp:Label> times</div>
            <div class="total">today :
                <asp:Label ID="lblToday" runat="server" Text="..."> times</asp:Label></div>
            <div class="total">
                <asp:Button ID="btnUpdate" runat="server" Text="Update" BackColor="#FF6600" ForeColor="White" Height="25px" OnClick="btnUpdate_Click" Width="82px" /></div>
        </div>
        <div class="Statistics_count">
            <div class="Statistics_count_title">Statistics Type Ecard sent in month</div>
            <div class="Statistics_count_content">

                <asp:GridView ID="grvTypeEcardInMonth" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnPageIndexChanging="grvTypeEcardInMonth_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="typeCardName" HeaderText="Name Type Ecard" />
                        <asp:BoundField DataField="sent" HeaderText="Sent" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </div>
            <div class="total">
                <asp:Button ID="btnUpdateTypeEcard" runat="server" Text="Update" BackColor="#FF6600" ForeColor="White" Height="25px" OnClick="btnUpdateTypeEcard_Click" Width="82px" /></div>
        </div>
        <div class="Statistics_top5EcardInMonth">
            <div class="top5_title">Top 5 Ecard Sent Most In Month</div>
            <div class="top5_gridview">
                <asp:GridView ID="grvEcardSentInMonth" runat="server" AllowPaging="True" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnPageIndexChanging="grvEcardSentInMonth_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="ecardId" HeaderText="EcardId" />
                        <asp:BoundField DataField="typeCardName" HeaderText="TypeCardName" />
                        <asp:BoundField DataField="sent" HeaderText="Sent" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" />
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </div>
            <div class="total">
                <asp:Button ID="btnUpdateTop5" runat="server" Text="Update" BackColor="#FF6600" ForeColor="White" Height="25px" OnClick="btnUpdateTop5_Click" Width="82px" /></div>
        </div>
    <%--  <div id="Statistics_Customer">
            <div class="Statistics_Customer_title">Statistics Customer</div>
            <div class="Statistics_Customer_detail">
                <asp:GridView ID="grvCustomer" runat="server" AllowPaging="true" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnPageIndexChanging="grvCustomer_PageIndexChanging">
                    <Columns>
                        <asp:BoundField DataField="customerId" HeaderText="ID" />
                        <asp:BoundField DataField="username" HeaderText="User Name" />
                        <asp:BoundField DataField="Password" HeaderText="Password" />
                        <asp:BoundField DataField="name" HeaderText="Name" />
                        <asp:BoundField DataField="birthday" HeaderText="Birthday" />
                        <asp:BoundField DataField="email" HeaderText="Email" />
                        <asp:BoundField DataField="status" HeaderText="Status" />
                    </Columns>
                    <FooterStyle BackColor="White" ForeColor="#000066" />
                    <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                    <RowStyle ForeColor="#000066" HorizontalAlign="Center"/>
                    <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                    <SortedAscendingHeaderStyle BackColor="#007DBB" />
                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                    <SortedDescendingHeaderStyle BackColor="#00547E" />
                </asp:GridView>
            </div>
            <div class="total_customer">Total Customer : <asp:Label ID="lblTotalCustumer" runat="server" Text="..."></asp:Label> </div>
            <div class="total_customer">Customer Normal : <asp:Label ID="lblCustomerNormal" runat="server" Text="..."></asp:Label> Normal</div>
            <div class="total_customer">Customer Subcrible : <asp:Label ID="lblCustomerSubcribe" runat="server" Text="..."></asp:Label> Subcribe</div>
        </div>--%>
        <div id="thongketheongay">
            <div class="Statistics_Customer_title">Statistic Transaction With Today</div>
            <div class="chitiet">
                <div class="text">
                    
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    Number of Sent Ecard in Today : <asp:Label ID="lblTransactionToday" runat="server" Text="..."></asp:Label> Times.
                
                </div>
                <br />
                <div class="gridview">
                    <asp:GridView ID="grvTransactionToday" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3">
                        <Columns>
                            <asp:BoundField DataField="customerId" HeaderText="CustomerId" />
                            <asp:BoundField DataField="name" HeaderText="Name" />
                            <asp:BoundField DataField="email" HeaderText="Email" />
                            <asp:BoundField DataField="nameReceived" HeaderText="NameReceived" />
                            <asp:BoundField DataField="emailReceived" HeaderText="EmailReceived" />
                            <asp:BoundField DataField="ecardId" HeaderText="EcardID" />
                            <asp:BoundField DataField="dateSent" HeaderText="DateSent" />
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        <SortedAscendingCellStyle BackColor="#F1F1F1" />
                        <SortedAscendingHeaderStyle BackColor="#007DBB" />
                        <SortedDescendingCellStyle BackColor="#CAC9C9" />
                        <SortedDescendingHeaderStyle BackColor="#00547E" />
                    </asp:GridView>
                </div>
            </div>
        </div>
    </div>
</asp:Content>

